
package com.htd.htdapmdmo;


import com.htd.htdapmcommon.enums.AlarmSendStatus;
import com.htd.htdapmcommon.enums.AlarmsStatusEnum;
import lombok.Getter;
import lombok.Setter;
import org.apache.commons.lang3.builder.ReflectionToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

import javax.persistence.EnumType;
import javax.persistence.Enumerated;
import java.io.Serializable;
import java.util.Date;


@Setter
@Getter
public class AlarmsInfo implements Serializable {
	/** serialVersionUID */
	private static final long serialVersionUID = 1L;
	/** ID */
	private Long id;
	/** alarms_channel */
	private String alarmsChannel;
	/** alarms_no */
	private String alarmsNo;
	/** alarms_event_type */
	private String alarmsEventType;
	/** alarms_title */
	private String alarmsTitle;
	/** alarms_detail */
	private String alarmsDetail;
	/** alarms_id */
	private String alarmsId;
	/** alarms_name */
	private String alarmsName;
	/** alarms_host */
	private String alarmsHost;
	/** alarms_service */
	private String alarmsService;
	/** alarms_priority_code */
	private Integer alarmsPriorityCode;
	/** alarms_product_type_code */
	private String alarmsProductTypeCode;
	/** alarms_product_type_msg */
	private String alarmsProductTypeMsg;
	/** alarms_priority_msg */
	private String alarmsPriorityMsg;
	/** create_time */
	private Date createTime;
	/** update_time */
	private Date updateTime;
	/** alarms_status */
    @Enumerated(EnumType.STRING)
	private AlarmsStatusEnum alarmsStatus=AlarmsStatusEnum.ACTIVE;

    @Enumerated(EnumType.STRING)
    private AlarmSendStatus sendStatus = AlarmSendStatus.SEND_NO;
	
	@Override
	public String toString() {
		return ReflectionToStringBuilder.toString(this, ToStringStyle.SHORT_PREFIX_STYLE);
	}

}
